<?php
session_start();
include dirname(__FILE__) . "/config/functions.php";

$optionsQuery = mysql_query("SELECT * FROM `option`");
while($row = mysql_fetch_assoc($optionsQuery))    $options[$row['key']] = $row['value'];

if (!$_SESSION['name'] && !$_SESSION['email']) {
    header('location: index.php');
}
?>
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title><?= $options['site_name'] ?></title>
        <meta property="og:title" content="<?= $options['site_name'] ?>">
        <meta property="og:site_name" content="<?= $options['site_name'] ?>">
        <meta property="og:type" content="<?= $options['type'] ?>">
        <meta property="og:url" content="<?= $options['url'] ?>">
        <meta property="og:image" content="<?= $options['image'] ?>">
        <meta property="fb:admins" content="<?= $options['admins'] ?>">
        <meta name="description" content="<?= $options['site_description'] ?>">
        <meta name="keywords" content="<?= $options['keywords'] ?>">
        <meta name="author" content="<?= $options['author'] ?>">
        <meta name="Robots" content="<?= $options['Robots'] ?>">
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
        <link href="css/bootstrap.min.css" rel="stylesheet"/>
        <link href="css/style.css" rel="stylesheet"/>
    </head>
    <body>

        <table width="950" height="1" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
            <tr>
                <td background="images/bg.png">
                    <img src="images/header.png" alt="Viral Marketing Script - Your MEGA Traffic on Over-Drive!" width="950" height="294" lowsrc="Viral Marketing Script - Your MEGA Traffic on Over-Drive!"></td>
            </tr>
            <tr>
                <td background="images/bg.png"><div align="center"><strong><span class="style4">
                                :: <a href="index.php">Home</a> 
                                :: <a href="contact.php">Contact Us</a> 
                                :: <a href="advertise.php">Advertise</a> 
                                :: <a href="member/login.php">Login</a> 
                                ::</span></strong></div>
                </td>
            </tr>
            <tr>
                <td background="images/bg.png">
                    <div align="center">

                        <div class="container"> 
                            <div style="margin: 7px;"> 
                                <?php $_position = 'top'; ?>
                                <?php include dirname(__FILE__) . '/_banner.php'; ?>
                            </div>
                            <div class="row">


                                <div class="main text-center text-page">
                                    <p style="padding: 1px;" >
                                        <span style="color: brown;"><?= $_SESSION['name'] ?></span> Thank you for registering. <br>
                                        A message has been sent to your email box: <span style="color: brown;"><?= $_SESSION['email'] ?></span>. There's a link inside the email, click it. You will be returned to Viral Marketing. It will activate your account. 
                                        <br><br>
                                        The e-mail is sent out instantly. If you do not received it within 10-15 minutes, we recommend you Click Here to <a href='contactus.php'>contact us.</a><br><br>
                                        If you are using free email address provider like yahoo/hotmail then please don't forget to check your junk/bulk folder as it may be delivered there.
                                    </p>
                                </div> 
                            </div> 
                            <div style="margin: 35px;"> 
                                <?php $_position = 'bottom'; ?>
                                <?php include dirname(__FILE__) . '/_banner.php'; ?>
                            </div>
                        </div>

                    </div>
                </td>
            </tr>
            <tr>
                <td background="images/bg.png"><div align="center">
                        <?php include 'footer.php'; ?>
                    </div></td>
            </tr>
            <tr>
                <td>
                    <img src="images/footer.png" width="950" height="108" alt=""></td>
            </tr>
        </table>
        <script src="js/jquery-1.10.2.min.js"></script>
        <script src="js/bootstrap.min.js"></script>

        <!-- End Save for Web Slices -->
    </body>
</html>    
<?php
session_destroy();
?>